/// id : 29
/// type : "功效"
/// category : "健脾养胃"
/// seq : 8
/// imageUrl : "https://imgs.xiao688.com/2018/09/07/11/15362901426505qtNJKARg.jpg"
/// createTime : "2025-03-24T15:09:55"
/// updateTime : "2025-03-26T09:41:56"

List<CookbookBean> getCookbookBean(dynamic json) {
  List<CookbookBean> cityEntity = [];
  if (json != null) {
    json.forEach(
          (v) {
        cityEntity.add(CookbookBean.fromJson(v));
      },
    );
  }
  return cityEntity;
}

class CookbookBean {
  CookbookBean({
      this.id, 
      this.type, 
      this.category, 
      this.seq, 
      this.imageUrl, 
      this.createTime, 
      this.updateTime,});

  CookbookBean.fromJson(dynamic json) {
    id = json['id'];
    type = json['type'];
    category = json['category'];
    seq = json['seq'];
    imageUrl = json['imageUrl'];
    createTime = json['createTime'];
    updateTime = json['updateTime'];
  }
  num? id;
  String? type;
  String? category;
  num? seq;
  String? imageUrl;
  String? createTime;
  String? updateTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['type'] = type;
    map['category'] = category;
    map['seq'] = seq;
    map['imageUrl'] = imageUrl;
    map['createTime'] = createTime;
    map['updateTime'] = updateTime;
    return map;
  }

}